import java.util.ArrayList;

public class ConcreteAggregate implements Aggregate{   //具体的聚合类

    public ArrayList list=new ArrayList();

    @Override
    public AbstractIterrator createIterator() {
        return new ConcreteIterator(this);
    }

    @Override
    public void add(Object object) {
        this.list.add(object);
    }

    @Override
    public void remove(Object object) {
        this.list.remove(object);
    }
}
